package com.hongsheng.service;/*
@author:刘逸思普
@Date:2023/8/10
 */

import com.github.pagehelper.PageInfo;
import com.hongsheng.pojo.Driver;
import com.hongsheng.pojo.Order;
import com.hongsheng.pojo.vo.OrderReportVo;

import java.util.List;

public interface OrderService {
//    List<Order> selectOrders(Order order);
List<Order> selectOrders();

    Boolean setAmount(Order order);

    PageInfo<Order> selectOrdersByLimit(Integer page, Integer limit, Order order);
    Boolean addOrder(Order order);

    List<Driver> findDrivers(Order order);

    Boolean updateOrder(Order order);
    Boolean deleteOrder(Integer id);

    Order findOrderById(Integer id);

    Double findCapacity(Integer id);

    Double totalSize(Integer id);

    Double totalWeight(Integer id);

    Boolean driverStu();

    Boolean getBillOut(Order order);

    Boolean billIn(Order orderById);

    List<String> findStartAddress();


//    IPage<Order> getPage(Integer currentPage, Integer pageSize, Order order);
    /***
     *  根据月份查询订单数量
     * @return  List<OrderReportVo>
     * @Auth ggb
     */
    List<OrderReportVo> selectOrderByMonth();

    Integer getOrderCount();

    Double getBillIn();

    Integer getCustomer();

    Double getBillOut();
}
